package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检测数据对象 detectitem
 * 
 * @author gzhuangwei
 * @date 2022-09-17
 */
public class Detectitem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 归属报告 */
    @Excel(name = "归属报告")
    private String reportsid;

    /** 归属设备 */
    @Excel(name = "归属设备")
    private String deviceid;

    /** 数据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datatime;

    /** 数据值 */
    @Excel(name = "数据值")
    private String dataval;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReportsid(String reportsid) 
    {
        this.reportsid = reportsid;
    }

    public String getReportsid() 
    {
        return reportsid;
    }
    public void setDeviceid(String deviceid) 
    {
        this.deviceid = deviceid;
    }

    public String getDeviceid() 
    {
        return deviceid;
    }
    public void setDatatime(Date datatime) 
    {
        this.datatime = datatime;
    }

    public Date getDatatime() 
    {
        return datatime;
    }
    public void setDataval(String dataval) 
    {
        this.dataval = dataval;
    }

    public String getDataval() 
    {
        return dataval;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportsid", getReportsid())
            .append("deviceid", getDeviceid())
            .append("datatime", getDatatime())
            .append("dataval", getDataval())
            .toString();
    }
}
